home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 34.zip
/
BS1 part 34
/
FredFish PD 314.adf
/
Zc
/
zcsrc.lzh
/
genstubs
/
genstubs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1988-06-18
|
1KB
|
50 lines
/*
* genstubs.h: generates assembler code for the PDC version of Amiga.lib
* from Commodore-supplied .fd files on the extras disk.
*
* Copyright 1988 by J.A.Lydiatt. Permission is given to freely distribute
* this code for non-commercial use.
* Maintenance Notes:
* 18Jun88 - V1.0 Created by Jal.
*/
#include <stdio.h>
/*
* Limits and Definitions used:
*/
#define MAXSTR 32
#define MAXPARMS 10
#define SAME 0
/*
* Symbols returned by gettok().
*/
#define COMMA 1
#define COMMENT 2
#define DIRECTIVE 3
#define EOL 4
#define ID 5
#define LPAREN 6
#define NUMBER 7
#define RPAREN 8
#define SLASH 9
#define UNKNOWN 10
typedef struct funcinfo {
int nformal; /* # of formal parmeters */
int nlists; /* # lists like D0/D1/D2 defined*/
unsigned int regmask; /* bit mask of registers used. */
int nregs[MAXPARMS]; /* # registers in rlist[i] */
char givenline[128]; /* line where specs drawn from. */
char name[MAXSTR]; /* name of the function. */
char formal[MAXPARMS][MAXSTR]; /* name of format parameters. */
char reglist[MAXPARMS][MAXSTR]; /* register list like D0/D1/D2 */
} FUNCINFO;
typedef struct token {
int value;
char id[MAXSTR];
} TOKEN;